<?php

class mdlRoleAssignments extends Zend_Db_Table_Abstract
{

    protected $_name = 'mdl_role_assignments';
    protected $_schema = 'moodle';
    protected $_referenceMap = array(
        'Contexto' => array(
            'columns' => array('contextid'),
            'refTableClass' => 'mdlContext',
            'refColumns' => array('id')
        ),
        'Usuario' => array(
            'columns' => array('userid'),
            'refTableClass' => 'mdlUser',
            'refColumns' => array('id')
        ),
        'Perfil' => array(
            'columns' => array('roleid'),
            'refTableClass' => 'mdlRole',
            'refColumns' => array('id')
        ),
    );
  
}